﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Create.aspx.cs" MasterPageFile="~/Design.Master"  Inherits="Resto55_WebRole.Create" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style7
        {
            width: 50%;
            text-align: left;
        }
        .style8
        {
            height: 28px;
            text-align: left;
        }
        .style9
        {
            
            margin-right: 0px;
        }
        .style10
        {
            width:40%;
            text-align: left;
        }
        .style11
        {
            height: 28px;
            
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
<div class="GrosTitre" style="">Ajouter un nouveau restaurant</div>
<div style="padding-left:5px;width:315px">
        <table align="center" class="style9">
            <tr>
                <td class="style7">

        <asp:Label ID="Label1" runat="server" Text="Nom"></asp:Label>
                </td>
                <td class="style10">
        <asp:TextBox ID="TB_Nom" runat="server" style="text-align: center"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TB_Nom" Display="Dynamic" ErrorMessage="Champ requis"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <asp:Label ID="Label2" runat="server" Text="Adresse"></asp:Label></td>
                <td class="style10">
        <asp:TextBox ID="TB_Adr1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8">

         <asp:Label ID="Label3" runat="server" Text="Adresse 2"></asp:Label>
                </td>
                <td class="style11">
        <asp:TextBox ID="TB_Adr2" runat="server" style="text-align: center"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Label ID="Label5" runat="server" Text="code postal ou dép"></asp:Label></td>
                <td class="style11">
                    <asp:TextBox ID="TB_codepostal" runat="server" Height="22px"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToValidate="TB_codepostal" Display="Dynamic" 
            ErrorMessage="Format incorrect : le code doit être numérique" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="TB_codepostal" Display="Dynamic" ErrorMessage="Champ requis"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Label ID="Label6" runat="server" Text="ville"></asp:Label></td>
                <td class="style11">
        <asp:TextBox ID="TB_ville" runat="server" style="text-align: center"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="TB_ville" Display="Dynamic" ErrorMessage="Champ requis"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Label ID="Label7" runat="server" Text="site"></asp:Label></td>
                <td class="style11">
        <asp:TextBox ID="TB_site" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:Label ID="Label8" runat="server" Text="tel"></asp:Label></td>
                <td class="style11">
        <asp:TextBox ID="TB_tel" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
            <td colspan="2">
               <asp:Button ID="Bt_create" runat="server" Text="Ajouter" 
            onclick="Bt_create_Click" />
            </td>
            </tr>
        </table>

        <br />
         <%--<asp:Label ID="Label4" runat="server" Text="Département"></asp:Label>
        <asp:TextBox ID="TB_Dep" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="TB_Dep" Display="Dynamic" ErrorMessage="Champ requis"></asp:RequiredFieldValidator>
        <br />--%>
        
     
            </div>
</asp:Content>